Provide an accessor for their connection ; however , application servers and web application frameworks frequently use the decorator pattern to wrap jdbc connections 为它们的连接提供了存取器;但是,应用程序服务器和web应用程序框架频繁地使用修饰器模式包装jdbc连接。
In object-oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class.